#pragma once
#include"global.h"
#include<string>
#include<memory>
using namespace std;
class VIHC
{
private:
	static const int RUN_MAX=4096;
	static unique_ptr<int[]> _Runnum(const string& data);
	static unique_ptr<string[]> _Huffman(unique_ptr<int[]> runnum);
public:
	VIHC(void);
	~VIHC(void);
	static unique_ptr<string> code(const string& data);
};

